package theone.ui;

import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;

public abstract class UiComponent {
	
	protected static Color Faded = new Color(228, 228, 228, 255);
	protected static Color Bright = new Color(255, 255, 255, 255);
	
	private int x;
	private int y;
	private int width = 200;
	private int height = 50;
	
	private boolean hover;
	private boolean hoverSensitive;
	
	public abstract void draw(Graphics g, int offsetX, int offsetY);
	
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public boolean isHover() {
		if (!hoverSensitive)
			return false;
		return hover;
	}
	public void setHover(boolean hover) {
		this.hover = hover;
	}

	public boolean isHoverSensitive() {
		return hoverSensitive;
	}

	public void setHoverSensitive(boolean hoverSensitive) {
		this.hoverSensitive = hoverSensitive;
	}
}
